﻿@model IEnumerable<Kooboo.CMS.Content.Models.TextContent>
@{
    var months = Model.GroupBy(it => it["OrderTime"].ToString().Substring(0, 6));        
}
<div class="block menubar">
    <h4 class="title">@("Month meter".Label())</h4>
    <ul class="list">
        @foreach (var date in months)
        {
            string curdate = date.Key;

            string year = curdate.Substring(0, 4);
            string month = curdate.Substring(4, 2); 
            
            <li><a tabindex="4" href="@Url.ModuleUrl().Action("Records", new { month = @curdate })">@year-@month </a> </li>
        }        
    </ul>
</div>
